Important: The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).
Important: The route distinguisher ID must be configured for the VRF name via the
route-distinguisher command in BGP VRF Configuration mode, before using this keyword.
Use of the address-family ipv4 command switches the command mode to BGP Address Family Configuration Mode; the CLI prompt changes to:
Use of address-family ipv4 vrf vrf_name command switches the command mode to BGP Address Family Configuration Mode; the CLI prompt changes to:
Use of address-family ipv6 command switches the command mode to BGP Address Family Configuration Mode; the CLI prompt changes to:
Use of address-family vpnv4 command switches the command mode to BGP Address Family Configuration Mode; the CLI prompt changes to:
admin distance: Specifies the administrative distance that you want to apply to the IP prefix.
distance must be an integer from 1 through 254.
prefix prefix_addr: Specifies the IP prefix of routes that should have the admin distance applied.
prefix_addr must be an IPv4 address in dotted-decimal notation and the number of subnet bits, representing the subnet mask in CIDR shorthand (for example, 10.1.1.1/24).
route-access-list list_name: Defines the name of a route access list that defines for which routes the administrative distance should be set.
external ebgp_dist: Sets the administrative distance for eBGP routes.
ebgp_dist must be an integer from 1 through 254.
internal ibgp_dist: Sets the administrative distance for iBGP routes.
ibgp_dist must be an integer from 1 through 254.
local local_dist: Sets the administrative distance for local routes.
local_dist must be an integer from 1 through 254.
Use the following command to set the administrative distance to 100 for all routes that have an IP prefix of
192.168.0.0 with a netmask of
16 and are specified in a remote access list named
racl1:
Specifies the IP address of a BGP neighbor. ip_address must be in IPv4 dotted-decimal or IPV6 colon-separated notation.
route-map map_name: Specifies the route-map that contains the criteria to originate default routes.
map_name must be the name of an existing route-map in the current context.
Filters updates to and from this neighbor based on a route access list. dist_list: The name or number of an existing route-access-list. Default: No filtering is performed.
in: Indicates that incoming advertised routes should be filtered.
out: Indicates that outgoing advertised routes should be filtered.
[ max-hop ] number: Specifies the maximum number of hops allowed to reach a neighbor.
number must be an integer from 1 through 255. Default hop count: 255
Establishes BGP filters based on an AS path access list. filt_list is the name of an existing AS path access list.
in: Indicates that incoming advertised routes will be filtered.
out: Indicates that outgoing advertised routes will be filtered.
max_num: Specifies the maximum number of prefixes permitted. This must be an integer from 1 through 4294967295.
[ threshold thresh_percent ]: Specifies a percentage value of when the BGP table is full. When this value is reached, peer warnings are sent to the neighbor and the neighbor connection is reset.
thresh_percent must be an integer from 1 through 100.
[ warning-only ]: Specifies that only a warning message is sent when the limit is exceeded. The neighbor connection is not reset
AS_num: Specifies the neighbor’s AS number as an integer from 1 through 65535.
Applies a route map to the neighbor. map_namei s the name of an existing route-map in the current context.
in: Indicates that the route map applies to incoming advertisements.
out: Indicates that the route map applies to outgoing advertisements.
both: Sends extended and standard community attributes.
extended: Sends extended community attributes.
standard: Sends standard community attributes.
connect-interval conn_time: Specifies the connect timer in seconds.
conn_time must be an integer from 0 through 65535. The default is 60 seconds.
keepalive-interval keep_time: The frequency (in seconds) at which the current BGP router sends keepalive messages to its neighbor.
keep_time must be an integer from 0 through 65535. The default is 30 seconds.
Holdtime-interval hold_time: The interval (in seconds) the router waits for a keepalive message before declaring a neighbor dead.
hold_time must be an integer from 0 through 65535. The default is 90 seconds.
Sets the default weight for routes from this neighbor. value must be an integer from 0 through 65535. Default: 0
Specifies the IP address and netmask bits for the network to announce via BGP. ip_address is a network IPv4 address in dotted-decimal notation and
mask is the number of subnet bits, representing a subnet mask in CIDR shorthand. These must be entered in the dotted-decimal notation/subnet bits format (for example, 10.1.1.1/24).
Filter routes through the specified route map before announcing the network. map_name is the name of the route-map to use specified as an alphanumeric string of 1 through 79 characters.
keepalive-interval interval: Specifies the interval (in seconds) to wait between sending keepalive packets as an integer from 0 through 65535. Default: 30
holdtime-interval time: Specifies the interval (in seconds) after which the neighbor is considered dead if keepalive messages are not received as an integer from 0 through 65535.